# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.
# -*- coding: utf-8 -*-

from django.contrib.auth.models import AbstractUser
from django.db import models
import uuid
from django.db import connection
from django.db.models import Count
from datetime import datetime
from account.models import Admin





class Permission(models.Model):
    permission_name = models.CharField(max_length=15, null=True)
    user = models.ManyToManyField(Admin, related_name='permission_name')



class View_permission(models.Model):
    view_name = models.CharField(max_length=15, null=True)
    view_permiss = models.OneToOneField("Permission", related_name='view_name')